<h1>Search Report</h1>

<div class="poll-result">
<?php foreach($keywords as $keyword): ?>
<div class="poll-text"><?php echo $keyword->name ?></div>
<div class="poll-bar"><div class="poll-foreground" style="width:<?php echo $keyword->counter/$sum*100 ?>%;"></div></div>
<div class="poll-percent"><span style="float:left;"><?php echo $keyword->counter ?> คน</span><?php echo number_format($keyword->counter/$sum*100,2) ?>%</div>
<?php endforeach; ?>
</div>
